from multiprocessing import Process, Lock, Manager,Event
import pos_nokov_neo as pnn
import test_multi_p2 as tmp2
import time
import multi_rm_attack as mra
import multi_tcp_server as mts

if __name__ == '__main__':
    with Manager() as manager:
        # d = manager.dict()  # 空字典
        gp = manager.list(range(7))
        gv = manager.list(range(7))
        event=Event()
        
        p1 = Process(target=pnn.run, args=(event, gp, gv))
        p2 = Process(target=mts.run, args=(gp,gv))
        p1.start()
        event.wait()
        p2.start()
        
        time.sleep(200)
        # p1.join()